# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=blobhunter
pkgver=73.866a8c3
pkgrel=4
pkgdesc='Find exposed data in Azure with this public blob scanner.'
groups=('blackarch' 'blackarch-scanner')
arch=('any')
url='https://github.com/cyberark/BlobHunter'
license=('MIT')
depends=('python' 'python-azure-common' 'python-azure-identity'
         'python-azure-mgmt-core' 'python-azure-mgmt-resource'
         'python-azure-mgmt-storage'
         'python-azure-storage-blob')
makedepends=('git')
source=("$pkgname::git+https://github.com/cyberark/BlobHunter.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 BlobHunter.py "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

